﻿<%@ Page Title="社区设施报修" Language="C#" MasterPageFile="~/HouseholdMenu.master" AutoEventWireup="true"
    CodeBehind="SubmitRepairIssue.aspx.cs" Inherits="RealtyManagementSystem.Web.Householders.SubmitRepairIssue"
    UICulture="zh-CN" %>

<%@ Register TagPrefix="uc" TagName="repaireIssue" Src="/Common/ViewRepaireIssues.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentHolder" runat="server">
    <!-- user ctrl -->
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="RepairRecordId"
        DataSourceID="EntityDataSource1" GridLines="None" Width="100%" AllowPaging="True"
        AllowSorting="True" CellPadding="4" ForeColor="#333333" 
        CssClass="repair_view">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="RepairRecordId" HeaderText="编号" ReadOnly="True" SortExpression="RepairRecordId" />
            <asp:BoundField DataField="aspnet_Users.UserName" HeaderText="创建者" ReadOnly="True"
                SortExpression="aspnet_Users" />
            <asp:BoundField DataField="RepairItemDesc" HeaderText="维修信息" ReadOnly="True" SortExpression="RepairItemDesc" />
            <asp:BoundField DataField="CreateDate" DataFormatString="{0:yyyy/MM/dd}" HeaderText="提交时间"
                ReadOnly="True" SortExpression="CreateDate" />
            <asp:TemplateField HeaderText="状态" InsertVisible="False" SortExpression="RepairIssueStatu">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RepairIssueStatu.Name") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("RepairIssueStatu.Name") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=realtydbEntities"
        DefaultContainerName="realtydbEntities" EnableDelete="True" EnableFlattening="False"
        EnableInsert="True" EnableUpdate="True" EntitySetName="RepairIssues" Include="aspnet_Users, RepairIssueStatu">
    </asp:EntityDataSource>
    <!-- end user ctrl -->
    <!-- add repair Issue -->
    <%-- r.RepairRecordId, r.CreaterId, r.RepairItemDesc, r.CreateDate, r.AccepterId, r.AcceptDate,
    r.CreaterVerification, r.StatusId--%>
    <br />
    <br />
    <br />
    <div>
        <span class="realty_font realty_detail_title_font_2">提交人：</span><asp:Label ID="lblCreater"
            runat="server" Text="--" CssClass="publish_notice_label"></asp:Label>
    </div>
    <div>
        <span class="realty_font realty_detail_title_font_2">问题描述：</span><CKEditor:CKEditorControl
            ID="txtDescription" runat="server" UIColor="#E0EEEE" Language="zh-cn" EnterMode="BR"></CKEditor:CKEditorControl></div>
    <div>
        <span class="realty_font realty_detail_title_font_2">创建日期：</span><asp:Label ID="lblCreateDate"
            runat="server" Text="2012/12/22" Font-Bold="True" Font-Size="X-Small" Font-Underline="True"
            CssClass="publish_notice_label"></asp:Label></div>
    <div>
        <span class="realty_font realty_detail_title_font_2">状态：</span><asp:Label ID="lblStauts"
            runat="server" Text="未提交" CssClass="publish_notice_label" Font-Names="微软雅黑"></asp:Label>
    </div>
    <!-- end repair Issue -->
    <div class="publish_button">
        <asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="continue_sytle_1" OnClick="btnSubmit_Click" />
    </div>
    <br />
</asp:Content>